﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200085D RID: 2141
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetTrainVisitorRegisterCsReq : IMessage<GetTrainVisitorRegisterCsReq>, IMessage, IEquatable<GetTrainVisitorRegisterCsReq>, IDeepCloneable<GetTrainVisitorRegisterCsReq>, IBufferMessage
	{
		// Token: 0x17001B0A RID: 6922
		// (get) Token: 0x06005FCB RID: 24523 RVA: 0x000FF777 File Offset: 0x000FD977
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetTrainVisitorRegisterCsReq> Parser
		{
			get
			{
				return GetTrainVisitorRegisterCsReq._parser;
			}
		}

		// Token: 0x17001B0B RID: 6923
		// (get) Token: 0x06005FCC RID: 24524 RVA: 0x000FF77E File Offset: 0x000FD97E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetTrainVisitorRegisterCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001B0C RID: 6924
		// (get) Token: 0x06005FCD RID: 24525 RVA: 0x000FF790 File Offset: 0x000FD990
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetTrainVisitorRegisterCsReq.Descriptor;
			}
		}

		// Token: 0x06005FCE RID: 24526 RVA: 0x000FF797 File Offset: 0x000FD997
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetTrainVisitorRegisterCsReq()
		{
		}

		// Token: 0x06005FCF RID: 24527 RVA: 0x000FF79F File Offset: 0x000FD99F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetTrainVisitorRegisterCsReq(GetTrainVisitorRegisterCsReq other) : this()
		{
			this.type_ = other.type_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005FD0 RID: 24528 RVA: 0x000FF7C4 File Offset: 0x000FD9C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetTrainVisitorRegisterCsReq Clone()
		{
			return new GetTrainVisitorRegisterCsReq(this);
		}

		// Token: 0x17001B0D RID: 6925
		// (get) Token: 0x06005FD1 RID: 24529 RVA: 0x000FF7CC File Offset: 0x000FD9CC
		// (set) Token: 0x06005FD2 RID: 24530 RVA: 0x000FF7D4 File Offset: 0x000FD9D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainVisitorRegisterGetType Type
		{
			get
			{
				return this.type_;
			}
			set
			{
				this.type_ = value;
			}
		}

		// Token: 0x06005FD3 RID: 24531 RVA: 0x000FF7DD File Offset: 0x000FD9DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetTrainVisitorRegisterCsReq);
		}

		// Token: 0x06005FD4 RID: 24532 RVA: 0x000FF7EB File Offset: 0x000FD9EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetTrainVisitorRegisterCsReq other)
		{
			return other != null && (other == this || (this.Type == other.Type && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005FD5 RID: 24533 RVA: 0x000FF81C File Offset: 0x000FDA1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Type != TrainVisitorRegisterGetType.None)
			{
				num ^= this.Type.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005FD6 RID: 24534 RVA: 0x000FF861 File Offset: 0x000FDA61
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005FD7 RID: 24535 RVA: 0x000FF869 File Offset: 0x000FDA69
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005FD8 RID: 24536 RVA: 0x000FF872 File Offset: 0x000FDA72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Type != TrainVisitorRegisterGetType.None)
			{
				output.WriteRawTag(112);
				output.WriteEnum((int)this.Type);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005FD9 RID: 24537 RVA: 0x000FF8A4 File Offset: 0x000FDAA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Type != TrainVisitorRegisterGetType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Type);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005FDA RID: 24538 RVA: 0x000FF8E2 File Offset: 0x000FDAE2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetTrainVisitorRegisterCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Type != TrainVisitorRegisterGetType.None)
			{
				this.Type = other.Type;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005FDB RID: 24539 RVA: 0x000FF913 File Offset: 0x000FDB13
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005FDC RID: 24540 RVA: 0x000FF91C File Offset: 0x000FDB1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 112U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Type = (TrainVisitorRegisterGetType)input.ReadEnum();
				}
			}
		}

		// Token: 0x040024DA RID: 9434
		private static readonly MessageParser<GetTrainVisitorRegisterCsReq> _parser = new MessageParser<GetTrainVisitorRegisterCsReq>(() => new GetTrainVisitorRegisterCsReq());

		// Token: 0x040024DB RID: 9435
		private UnknownFieldSet _unknownFields;

		// Token: 0x040024DC RID: 9436
		public const int TypeFieldNumber = 14;

		// Token: 0x040024DD RID: 9437
		private TrainVisitorRegisterGetType type_;
	}
}
